package com.niit.springbootshop.dao;

import com.niit.springbootshop.entity.Product;

import java.util.List;

public interface ProductDao {
    int deleteByPrimaryKey(Integer pid);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer pid);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> getHotProducts();

    List<Product> getNewProducts();

    List<Product> getByCsid(List<Integer> ids);
}